<?php

namespace App\Http\Requests;

class WithdrawRequest extends Request
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'withdrawal_amount' => 'required|numeric|max:10000',
            'realname' => 'required|string'
        ];
    }

    public function attributes()
    {
        return [
            'withdrawal_amount' => '提现金额',
            'realname' => '真实姓名'
        ];
    }
}
